﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class Cross : MonoBehaviour {

    public int GridX;//交叉点坐标
    public int GridY;
    public MainLoop _mainLoop;
	// Use this for initialization
	void Start () {
        GetComponent<Button>().onClick.AddListener(() => {
            _mainLoop.OnClick(this);
        });
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
